﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace RM.Entities
{
    [DataContract(IsReference = true)]
    public class Question : BaseEntity
    {
        [DataMember]
        public virtual string Name { get; set; }
        [DataMember]
        public virtual string Language { get; set; }
        [DataMember]
        public virtual int Experience { get; set; }
        [DataMember]
        public virtual string Technology { get; set; }
        [DataMember]
        public virtual IList<QuestionDetails> QuestionList { get; set; }
        //[DataMember(Name = "Question_TestList")]
        //public virtual IList<Test> TestList { get; set; }
    }

    [DataContract(IsReference = true)]
    public class QuestionDetails : BaseEntity
    {
        [DataMember]
        public virtual Question Question { get; set; }
        [DataMember]
        public virtual string Content { get; set; }
    }
}
